package cn.kgc.util;

import lombok.Getter;

/**
 * 系统中的异常类
 * @author wangyue
 * @version 1.0
 */
@Getter
public class BaseException extends RuntimeException {

    /**
     * 错误码
     */
    private int code;

    public BaseException(ResultConstant resultConstant) {
        super(resultConstant.getMsg());
        this.code = resultConstant.getCode();
    }

}